// import
import { onMounted } from 'vue'
import { useStore } from 'vuex'
import {
  getSonUrl,
  getSondetail,
  getSonLyrics
} from '@/service/api/playpage.js'
import axios from 'axios'
const store = useStore()
// const SonID = 1
async function useInit(SonID) {
  let data1 = []

  const res = await axios.all([
    getSonUrl({ id: SonID }),
    getSondetail({ ids: SonID })
    // getSonLyrics({ id: SonID })
  ])
  // data1 = res
  // return
  return res
}

export default useInit
